<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Ogre_glTF: C:/YbalridSoftware/AnnwvynSDK64/Ogre_glTF/src/private_headers/Ogre_glTF_materialLoader.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Ogre_glTF
   </div>
   <div id="projectbrief">glTF import library for Ogre</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_ogre__gl_t_f__material_loader_8hpp_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Ogre_glTF_materialLoader.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;tiny_gltf.h&quot;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;OgreHlms.h&gt;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;OgreHlmsPbs.h&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_ogre__gl_t_f.html">Ogre_glTF</a></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;{</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;    <span class="keyword">class </span>textureImporter;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1material_loader.html">   13</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_ogre__gl_t_f_1_1material_loader.html">materialLoader</a></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;        <a class="code" href="class_ogre__gl_t_f_1_1texture_importer.html">textureImporter</a>&amp; textureImporterRef;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        tinygltf::Model&amp; model;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        <span class="keyword">static</span> Ogre::Vector3 convertColor(<span class="keyword">const</span> tinygltf::ColorValue&amp; color);</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        <span class="keywordtype">void</span> setBaseColor(Ogre::HlmsPbsDatablock* block, Ogre::Vector3 color) <span class="keyword">const</span>;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <span class="keywordtype">void</span> setMetallicValue(Ogre::HlmsPbsDatablock* block, Ogre::Real value) <span class="keyword">const</span>;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <span class="keywordtype">void</span> setRoughnesValue(Ogre::HlmsPbsDatablock* block, Ogre::Real value) <span class="keyword">const</span>;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <span class="keywordtype">void</span> setEmissiveColor(Ogre::HlmsPbsDatablock* block, Ogre::Vector3 color) <span class="keyword">const</span>;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        <span class="keywordtype">bool</span> isTextureIndexValid(<span class="keywordtype">int</span> textureIndex) <span class="keyword">const</span>;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="keywordtype">void</span> setBaseColorTexture(Ogre::HlmsPbsDatablock* block, <span class="keywordtype">int</span> value) <span class="keyword">const</span>;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keywordtype">void</span> setMetalRoughTexture(Ogre::HlmsPbsDatablock* block, <span class="keywordtype">int</span> value) <span class="keyword">const</span>;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keywordtype">void</span> setNormalTexture(Ogre::HlmsPbsDatablock* block, <span class="keywordtype">int</span> value) <span class="keyword">const</span>;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keywordtype">void</span> setOcclusionTexture(Ogre::HlmsPbsDatablock* block, <span class="keywordtype">int</span> value) <span class="keyword">const</span>;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordtype">void</span> setEmissiveTexture(Ogre::HlmsPbsDatablock* block, <span class="keywordtype">int</span> value) <span class="keyword">const</span>;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keywordtype">void</span> setAlphaMode(Ogre::HlmsPbsDatablock* block, <span class="keyword">const</span> std::string&amp; mode) <span class="keyword">const</span>;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <span class="keywordtype">void</span> setAlphaCutoff(Ogre::HlmsPbsDatablock* block, Ogre::Real value) <span class="keyword">const</span>;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <a class="code" href="class_ogre__gl_t_f_1_1material_loader.html#a5418ac4d8e75b27f99580517426987f7">materialLoader</a>(tinygltf::Model&amp; input, <a class="code" href="class_ogre__gl_t_f_1_1texture_importer.html">textureImporter</a>&amp; textureInterface);</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        Ogre::HlmsDatablock* <a class="code" href="class_ogre__gl_t_f_1_1material_loader.html#a8f4d260d5207de20de4905d8f0e9227f">getDatablock</a>(<span class="keywordtype">size_t</span> index = 0) <span class="keyword">const</span>;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keywordtype">size_t</span> getDatablockCount() <span class="keyword">const</span>;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    };</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;}</div><div class="ttc" id="class_ogre__gl_t_f_1_1material_loader_html_a8f4d260d5207de20de4905d8f0e9227f"><div class="ttname"><a href="class_ogre__gl_t_f_1_1material_loader.html#a8f4d260d5207de20de4905d8f0e9227f">Ogre_glTF::materialLoader::getDatablock</a></div><div class="ttdeci">Ogre::HlmsDatablock * getDatablock(size_t index=0) const</div><div class="ttdoc">Get the material (the HlmsDatablock) </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f__material_loader_8cpp_source.html#l00136">Ogre_glTF_materialLoader.cpp:136</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1texture_importer_html"><div class="ttname"><a href="class_ogre__gl_t_f_1_1texture_importer.html">Ogre_glTF::textureImporter</a></div><div class="ttdoc">Import textures described in glTF into Ogre. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f__texture_importer_8hpp_source.html#l00011">Ogre_glTF_textureImporter.hpp:11</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1material_loader_html_a5418ac4d8e75b27f99580517426987f7"><div class="ttname"><a href="class_ogre__gl_t_f_1_1material_loader.html#a5418ac4d8e75b27f99580517426987f7">Ogre_glTF::materialLoader::materialLoader</a></div><div class="ttdeci">materialLoader(tinygltf::Model &amp;input, textureImporter &amp;textureInterface)</div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f__material_loader_8cpp_source.html#l00130">Ogre_glTF_materialLoader.cpp:130</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1material_loader_html"><div class="ttname"><a href="class_ogre__gl_t_f_1_1material_loader.html">Ogre_glTF::materialLoader</a></div><div class="ttdoc">Load material information from a model inside Ogre, provide you a datablock to set to an Ogre::Item o...</div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f__material_loader_8hpp_source.html#l00013">Ogre_glTF_materialLoader.hpp:13</a></div></div>
<div class="ttc" id="namespace_ogre__gl_t_f_html"><div class="ttname"><a href="namespace_ogre__gl_t_f.html">Ogre_glTF</a></div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f__internal__utils_8hpp_source.html#l00005">Ogre_glTF_internal_utils.hpp:5</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_a91c8a98b5018f6a00270b1d102aba85.html">private_headers</a></li><li class="navelem"><b>Ogre_glTF_materialLoader.hpp</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
